﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;
using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.SafetyManagementEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/6 11:57:25
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_CostPlanMain", new string[] { "Cpm_ID" })]
    public class ScmCostplanmainInfo : BaseEntity
    {
        public ScmCostplanmainInfo()
        {

        }


        private string _cpmId;
        /// <summary>
        /// 费用计划ID
        /// </summary>
        [ColumnMap("Cpm_ID", System.Data.DbType.String)]
        public string Cpm_ID
        {
            get { return _cpmId; }
            set
            {
                if (object.Equals(this._cpmId, value) != true)
                {
                    this._cpmId = value;
                    this.RaisePropertyChanged("Cpm_ID");
                }
            }
        }


        private int _cpmOperateuserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Cpm_OperateUserID", System.Data.DbType.Int32)]
        public int Cpm_OperateUserID
        {
            get { return _cpmOperateuserid; }
            set
            {
                if (object.Equals(this._cpmOperateuserid, value) != true)
                {
                    this._cpmOperateuserid = value;
                    this.RaisePropertyChanged("Cpm_OperateUserID");
                }
            }
        }


        private string _cpmOperateusername;
        /// <summary>
        /// 操作人名称
        /// </summary>
        [ColumnMap("Cpm_OperateUserName", System.Data.DbType.String)]
        public string Cpm_OperateUserName
        {
            get { return _cpmOperateusername; }
            set
            {
                if (object.Equals(this._cpmOperateusername, value) != true)
                {
                    this._cpmOperateusername = value;
                    this.RaisePropertyChanged("Cpm_OperateUserName");
                }
            }
        }


        private DateTime _cpmOperatetime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("Cpm_OperateTime", System.Data.DbType.DateTime)]
        public DateTime Cpm_OperateTime
        {
            get { return _cpmOperatetime; }
            set
            {
                if (object.Equals(this._cpmOperatetime, value) != true)
                {
                    this._cpmOperatetime = value;
                    this.RaisePropertyChanged("Cpm_OperateTime");
                }
            }
        }


        private string _cpmSection;
        /// <summary>
        /// 标段
        /// </summary>
        [ColumnMap("Cpm_Section", System.Data.DbType.String)]
        public string Cpm_Section
        {
            get { return _cpmSection; }
            set
            {
                if (object.Equals(this._cpmSection, value) != true)
                {
                    this._cpmSection = value;
                    this.RaisePropertyChanged("Cpm_Section");
                }
            }
        }


        private int _cpmConstructionid;
        /// <summary>
        /// 施工单位ID
        /// </summary>
        [ColumnMap("Cpm_ConstructionID", System.Data.DbType.Int32)]
        public int Cpm_ConstructionID
        {
            get { return _cpmConstructionid; }
            set
            {
                if (object.Equals(this._cpmConstructionid, value) != true)
                {
                    this._cpmConstructionid = value;
                    this.RaisePropertyChanged("Cpm_ConstructionID");
                }
            }
        }


        private string _cpmConstructionname;
        /// <summary>
        /// 施工单位名称
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(100, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("Cpm_ConstructionName", System.Data.DbType.String)]
        public string Cpm_ConstructionName
        {
            get { return _cpmConstructionname; }
            set
            {
                if (object.Equals(this._cpmConstructionname, value) != true)
                {
                    this._cpmConstructionname = value;
                    this.RaisePropertyChanged("Cpm_ConstructionName");
                }
            }
        }


        private DateTime _cpmReporttime;
        /// <summary>
        /// 上报时间
        /// </summary>
        [ColumnMap("Cpm_ReportTime", System.Data.DbType.DateTime)]
        public DateTime Cpm_ReportTime
        {
            get { return _cpmReporttime; }
            set
            {
                if (object.Equals(this._cpmReporttime, value) != true)
                {
                    this._cpmReporttime = value;
                    this.RaisePropertyChanged("Cpm_ReportTime");
                }
            }
        }


        private DateTime _cpmYearmonth;
        /// <summary>
        /// 年份
        /// </summary>
        [ColumnMap("Cpm_YearMonth", System.Data.DbType.DateTime)]
        public DateTime Cpm_YearMonth
        {
            get { return _cpmYearmonth; }
            set
            {
                if (object.Equals(this._cpmYearmonth, value) != true)
                {
                    this._cpmYearmonth = value;
                    this.RaisePropertyChanged("Cpm_YearMonth");
                }
            }
        }

        private int _cpmState;
        /// <summary>
        /// 施工单位ID
        /// </summary>
        [ColumnMap("Cpm_State", System.Data.DbType.Int32)]
        public int Cpm_State
        {
            get { return _cpmState; }
            set
            {
                if (object.Equals(this._cpmState, value) != true)
                {
                    this._cpmState = value;
                    this.RaisePropertyChanged("Cpm_State");
                }
            }
        }
    }
}



